package mapper;

import org.apache.ibatis.annotations.Select;
import pojo.Role;

import java.util.List;

public interface RoleMapper {
    @Select("select * from sys_user_role,sys_role where sys_role.id = sys_user_role.roleid and sys_user_role.userid = #{id}")
    public List<Role> findByUserId(int id);
}
